const path = require("path");

module.exports = {
  mode: "development",
  devtool: 'eval-source-map',
  resolve: {
    alias: {
      "@": path.resolve(__dirname, "src"),
    },
  },
  module: {
    rules: [
      {
        test: /\.js$/,
        exclude: /node_modules/,
        use: {
          loader: "babel-loader",
          options: {
            presets: ["@babel/preset-env", "@babel/preset-react"],
          },
        },
      },
      // {
      //     test: /\.css$/,
      //     use: ['style-loader', 'css-loader']
      // }
    ],
  },
};
